package com.spring.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * Description:
 *
 * @author lijie
 * @create 2019-01-16 0:16
 * Update by lijie 2019-01-16 0:16
 */
public class Cat implements InitializingBean, DisposableBean {

    public Cat(){
        System.out.println("Cat的构造方法被执行");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("Cat的销毁方法被执行");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("Cat的初始化方法被执行");
    }
}
